package com.twu.biblioteca;

/**
 * User: akerber
 * Date: 1/31/13
 * Time: 4:11 PM
 */
public class Movie {
    private String name;
    private int year;
    private String director;
    private Integer rate;

    public Movie(String name, int year, String director, Integer rate) {

        this.name = name;
        this.year = year;
        this.director = director;
        this.rate = rate;
    }

    public String retrieveFormattedMovieDetails() {
        if(rate != null){
            return name + " " + year + " " + director + " " + rate;
        } else
        return name + " " + year + " " + director + " " + "N/A";
    }
}
